package com.gitee.lambda.cart.predicate.impl;

import com.gitee.lambda.cart.Sku;
import com.gitee.lambda.cart.predicate.SkuPredicate;

/**
 * 对Sku的总价是否超出2000做为判断标准
 *
 * @author gcq
 * @Create 2022-06-26
 */
public class SkuTotalPricePredicate implements SkuPredicate {

    @Override
    public boolean test(Sku sku) {
        return sku.getTotalPrice() > 2000;
    }
}